package com.tianyu.inspection.common.enums;

/**********************************
 * @Author YSW
 * @Description WebSocket消息类型
 * @Date 2021/4/17 - 15:13
 **********************************/

public enum WebSocketMessageType {

    //文件存储类型
    WS_REGISTER("注册回复", 1),
    WS_HEARTBEAT("心跳回复", 2),
    //弃用
    WS_TELEMETRY("遥测消息", 3),
    WS_DANGER_LABEL("险情标记消息", 4),
    WS_DANGER_DEAL("险情处理消息", 5),
    WS_TASK_STATUS("任务状态消息", 6),
    WS_TASK_LIVE_VIDEO_STATUS("任务直播状态消息", 7),
    WS_USER_POSITION("巡线员位置上报消息", 8),
    KML_LOAD_PROCESS("KML解析上传进度", 9),
    WS_ADMIN_USER("用户相关消息", 10001),
    WS_OTHER("其他消息", 7);

    private int value;
    private String message;

    WebSocketMessageType(String message, int value) {
        this.message = message;
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
